package com.yuke.cloud.service.omc.dao;

import com.yuke.cloud.common.core.mybatis.MyMapper;
import com.yuke.cloud.service.omc.dto.CommissionGoodsDto;
import com.yuke.cloud.service.omc.dto.OdsTeamGoodsDto;
import com.yuke.cloud.service.omc.entity.OdsTeamGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OdsTeamGoodsMapper extends MyMapper<OdsTeamGoods> {
    Map<String, Integer> selectCountGoods(@Param("odsTeamGoods") OdsTeamGoods odsTeamGoods);

    List<OdsTeamGoodsDto> selectTeamGoodsByCondition(@Param("odsTeamGoodsDto") OdsTeamGoodsDto odsTeamGoodsDto);

    List<CommissionGoodsDto> teamGoodsCommission(@Param("shopId") Long shopId,
                                                 @Param("dateCreateTime") String dateCreateTime,
                                                 @Param("checkStatus") Byte checkStatus );

    List<OdsTeamGoodsDto> teamIntentCommission(@Param("shopId") Long shopId,@Param("checkStatus") Byte checkStatus );
}